<?php

$cars = array("fenhuiling","liangqiujing","liushuzhen");
echo $cars[1];
$cars [2] = "Audi";


echo "<pre>";
print_r($cars);
echo count($cars);


echo "<hr/>";
echo "foreach ::::.<br/>";
foreach ($cars as $value) {
    echo $value."<br/>";
}


echo "<hr/>";
echo "for.<br/>";
$len = count($cars);
for ($i = 0; $i < $len; $i++) {
    echo $cars[$i]."<br/>";
}
?>

